<template>
<div>
    <input type="text">
</div>
</template>

<script setup>
import { onBeforeMount, onMounted } from 'vue';

    onMounted(()=>{
        let input=document.querySelector('input')
        input.focus();
    })
    onBeforeMount(()=>{
        console.log("this is onBeforeMount")
    })
</script>

<style scoped>

</style>